package com.qingcloud.wcenter.api;

import com.qingcloud.wcenter.model.cdata.dto.CityWeatherData;
import com.qingcloud.wcenter.model.cdata.params.CityDataParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "city-data-api", url = "${healthy.data-url}")
public interface CityDataApi {

    /**
     * 区域污染小时数据查询
     */
    @PostMapping(value = "/cdata/hour")
    CityWeatherData hour(@RequestBody CityDataParams cityDataParams);

    /**
     * 区域污染天数据查询
     */
    @PostMapping(value = "/cdata/day")
    CityWeatherData day(@RequestBody CityDataParams cityDataParams);
}
